import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取防盗码获取方式信息
export const getSecurityCode = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/antiTheftObtain`, { params });

// 新增防盗码获取方式信息
export const setSecurityCode = params => axios.post(`${SERVER.CMSCLOUD_WMS}/customerService/antiTheftObtain`,  params );

// 修改防盗码获取方式信息
export const updateSecurityCode = params => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/antiTheftObtain`,  params );

// 查重
export const selectByPJSX = params => axios.get(`${SERVER.CMSCLOUD_WMS}/customerService/antiTheftObtain/selectByPJSX`,  {params} );

// 导入
export const importVINObtain = params => axios.put(`${SERVER.CMSCLOUD_WMS}/customerService/antiTheftObtain/importVINObtain`,  params );
